package com.cheng.example.leetcode.book.t001;

import java.util.HashSet;
import java.util.Set;

public class Test1 {

    public static boolean isUnique(String astr) {
        Set set = new HashSet();
        for (char s : astr.toCharArray()) {
            set.add(s);
        }
        return astr.length() == set.size();
    }


    public static void main(String[] args) {
        boolean b = isUnique("1234566");
        System.out.println(b);
    }


}
